home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60src.lha / Vim / vim60 / src / os_amiga.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-26  |  3.9 KB  |  186 lines

  1. /* vi:set ts=8 sts=4 sw=4:
  2.  *
  3.  * VIM - Vi IMproved    by Bram Moolenaar
  4.  *
  5.  * Do ":help uganda"  in Vim to read copying and usage conditions.
  6.  * Do ":help credits" in Vim to see a list of people who contributed.
  7.  */
  8.  
  9. /*
  10.  * Amiga Machine-dependent things
  11.  */
  12.  
  13. #define CASE_INSENSITIVE_FILENAME   /* ignore case when comparing file names */
  14. #define SPACE_IN_FILENAME
  15. #define USE_FNAME_CASE            /* adjust case of file names */
  16. #define USE_TERM_CONSOLE
  17. #define HAVE_AVAIL_MEM
  18.  
  19. #ifndef HAVE_CONFIG_H
  20. # ifndef _DCC
  21. #  define HAVE_STAT_H
  22. # endif
  23. # define HAVE_STDLIB_H
  24. # define HAVE_STRING_H
  25. # define HAVE_FCNTL_H
  26. # define HAVE_STRCSPN
  27. # define HAVE_STRICMP
  28. # define HAVE_STRNICMP
  29. # define HAVE_STRFTIME        /* guessed */
  30. # define HAVE_SETENV
  31. # define HAVE_MEMSET
  32. # define HAVE_QSORT
  33. # if defined(__DATE__) && defined(__TIME__)
  34. #  define HAVE_DATE_TIME
  35. # endif
  36.  
  37. #define DFLT_ERRORFILE        "AztecC.Err"
  38. #define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after"
  39.  
  40. #define BASENAMELEN    26    /* Amiga */
  41.  
  42. #define TEMPNAME    "t:v?XXXXXX"
  43. #define TEMPNAMELEN    12
  44.  
  45. #endif /* HAVE_CONFIG_H */
  46.  
  47. #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */
  48.  
  49. /*
  50.  * Manx doesn't have off_t, define it here.
  51.  */
  52. #ifdef AZTEC_C
  53. typedef long off_t;
  54. #endif
  55.  
  56. #ifdef LATTICE
  57. # define USE_TMPNAM    /* use tmpnam() instead of mktemp() */
  58. #endif
  59.  
  60. /*
  61.  * arpbase.h must be included before functions.h
  62.  */
  63. #ifdef FEAT_ARP
  64. # include <libraries/arpbase.h>
  65. #endif
  66.  
  67. /*
  68.  * This won't be needed if you have a version of Lattice 4.01 without broken
  69.  * break signal handling.
  70.  */
  71. #include <signal.h>
  72.  
  73. /*
  74.  * Names for the EXRC, HELP and temporary files.
  75.  * Some of these may have been defined in the makefile.
  76.  */
  77. #ifndef SYS_VIMRC_FILE
  78. # define SYS_VIMRC_FILE "$VIM/vimrc"
  79. #endif
  80. #ifndef SYS_GVIMRC_FILE
  81. # define SYS_GVIMRC_FILE "$VIM/gvimrc"
  82. #endif
  83. #ifndef SYS_MENU_FILE
  84. # define SYS_MENU_FILE    "$VIMRUNTIME/menu.vim"
  85. #endif
  86. #ifndef DFLT_HELPFILE
  87. # define DFLT_HELPFILE    "$VIMRUNTIME/doc/help.txt"
  88. #endif
  89. #ifndef FILETYPE_FILE
  90. # define FILETYPE_FILE    "filetype.vim"
  91. #endif
  92. #ifndef FTPLUGIN_FILE
  93. # define FTPLUGIN_FILE    "ftplugin.vim"
  94. #endif
  95. #ifndef INDENT_FILE
  96. # define INDENT_FILE    "indent.vim"
  97. #endif
  98. #ifndef FTOFF_FILE
  99. # define FTOFF_FILE    "ftoff.vim"
  100. #endif
  101. #ifndef FTPLUGOF_FILE
  102. # define FTPLUGOF_FILE    "ftplugof.vim"
  103. #endif
  104. #ifndef INDOFF_FILE
  105. # define INDOFF_FILE    "indoff.vim"
  106. #endif
  107. #ifndef SYNTAX_FNAME
  108. # define SYNTAX_FNAME    "$VIMRUNTIME/syntax/%s.vim"
  109. #endif
  110.  
  111. #ifndef USR_EXRC_FILE
  112. # define USR_EXRC_FILE    "s:.exrc"
  113. #endif
  114. #ifndef USR_EXRC_FILE2
  115. # define USR_EXRC_FILE2    "home:.exrc"
  116. #endif
  117.  
  118. #ifndef USR_VIMRC_FILE
  119. # define USR_VIMRC_FILE    "s:.vimrc"
  120. #endif
  121. #ifndef USR_VIMRC_FILE2
  122. # define USR_VIMRC_FILE2 "home:.vimrc"
  123. #endif
  124. #ifndef USR_VIMRC_FILE3
  125. # define USR_VIMRC_FILE3 "$VIM/.vimrc"
  126. #endif
  127. #ifndef EVIM_FILE
  128. # define EVIM_FILE    "$VIMRUNTIME/evim.vim"
  129. #endif
  130.  
  131. #ifndef USR_GVIMRC_FILE
  132. # define USR_GVIMRC_FILE "s:.gvimrc"
  133. #endif
  134. #ifndef USR_GVIMRC_FILE2
  135. # define USR_GVIMRC_FILE2 "home:.gvimrc"
  136. #endif
  137. #ifndef USR_GVIMRC_FILE3
  138. # define USR_GVIMRC_FILE3 "$VIM/.gvimrc"
  139. #endif
  140.  
  141. #ifdef FEAT_VIMINFO
  142. #ifndef VIMINFO_FILE
  143. # define VIMINFO_FILE    "s:.viminfo"
  144. #endif
  145. #endif /* FEAT_VIMINFO */
  146.  
  147. #ifndef EXRC_FILE
  148. # define EXRC_FILE    ".exrc"
  149. #endif
  150.  
  151. #ifndef VIMRC_FILE
  152. # define VIMRC_FILE    ".vimrc"
  153. #endif
  154.  
  155. #ifndef GVIMRC_FILE
  156. # define GVIMRC_FILE    ".gvimrc"
  157. #endif
  158.  
  159. #ifndef DFLT_BDIR
  160. # define DFLT_BDIR    ".,t:"        /* default for 'backupdir' */
  161. #endif
  162.  
  163. #ifndef DFLT_DIR
  164. # define DFLT_DIR    ".,t:"        /* default for 'directory' */
  165. #endif
  166.  
  167. #ifndef DFLT_VDIR
  168. # define DFLT_VDIR    "$VIM/vimfiles/view"    /* default for 'viewdir' */
  169. #endif
  170.  
  171. #ifndef DFLT_MAXMEM
  172. # define DFLT_MAXMEM    256        /* use up to 256Kbyte for buffer */
  173. #endif
  174. #ifndef DFLT_MAXMEMTOT
  175. # define DFLT_MAXMEMTOT    0        /* decide in set_init */
  176. #endif
  177.  
  178. #if defined(SASC)
  179. int setenv(const char *, const char *);
  180. #endif
  181.  
  182. #define mch_remove(x) remove((char *)(x))
  183. #define mch_rename(src, dst) rename(src, dst)
  184. #define mch_chdir(s) chdir(s)
  185. #define vim_mkdir(x, y) mch_mkdir(x)
  186.